package Exam;

import java.util.Scanner;

/**
 * @Author Kechelle
 * @Date 2020/9/26 19:53
 * @Version 1.0
 */
public class ClassFour {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        function(str);
    }

    public static void function(String str){
        char[] chars = str.toCharArray();
        int i=0,j=0,l=0,k=0;
        k = chars.length - 1;
        char[] c = new char[k];
        if (i==0){
            for(j=0;chars[j] == '_';j++);
            for(;chars[k] == '_';k--);
        }
        for (l=0,i=j;i<=k;i++){
            if(chars[i] == '_' && chars[i+1] == '_');
            else
                c[l++] = chars[i];
        }
        System.out.println(c);
    }
}
